<include file="Public:header"/>
<body data-tuktuk="boxes">
<include file="Public:left"/>
<include file="Public:aside"/>

    <section>
        <include file="Public:nav" />
        <hr />
        <article class="padding scroll">
            <div class="margin-bottom">
                <h4 class="text book inline">修改登录密码</h4>
            </div>            
            <hr />
            <form name="form" method="post" action="{:U('Admin/index/doChangpw')}" class="margin form-validate">
                <fieldset>
                    <label>原始密码:<small>请输入当前登录密码</small></label>
                    <input type="text" name="oldpw" data-rule-required="true"  >
                </fieldset>
                
                <fieldset>
                    <label>新密码:<small>新的登录密码</small></label>
                    <input type="text" name="newpw" data-rule-required="true"  >
                </fieldset>


                <hr />
                <button type="submit">保存</button>
            </form>
            
            
        </article>

        <footer class="bck dark text center">
            Powered by <a href="http://www.weiduniang.com" class="color theme text bold">Weiduniang</a>
        </footer>
    </section>
    
</body>
<load href="Public/js/app.js" />
<load href="Public/js/jquery.validation.min.js" />


<script type="text/javascript">
$(function(){
    
    
    if ($('.form-validate').length > 0) {
        $('.form-validate').each(function() {
            var $obj = $(this);
            $obj.validate({
                // errorElement: 'span',
                // errorClass: 'help-block has-error',
                errorPlacement: function(error, element) {
                    $(element).attr('required','required');
                },
                highlight: function(label,element) {
                    $(element).attr('required','required');
                },
                success: function(label,element) {
                    $(element).removeAttr('required');
                },
                onkeyup: function(element) {
                    $(element).valid();
                },
                onfocusout: function(element) {
                    $(element).valid();
                }
            });
        });
    }
})    
</script>
</html>
